import request from '@/utils/request'

// 1.登录请求
export function login(data) {
  return request({
    method: 'post',
    url: '/sys/login',
    data,
  })
}

// 2.获取用户信息
export function reqGetUserInfo() {
  return request({
    method: 'post',
    url: '/sys/profile',
  })
}

// 3.获取用户详细信息
export const reqGetUserDetailById = id => {
  return request.get(`/sys/user/${id}`)
}
